package stz.flash.main;


import net.rim.device.api.ui.MenuItem;
import net.rim.device.api.ui.component.Menu;
import net.rim.device.api.ui.container.FullScreen;
import stz.flash.option.OptionScreen;


/**
 * 화면을 투명으로 만들려면 다음의 background를 투명하게 할것 
 * @param FlashScreen
 * @param MainManager
 */
public class FlashScreen extends FullScreen {

	public static final int GAP_BOTTOM_px = 1;
	
	
	public FlashScreen() {
		super(DEFAULT_MENU);
		add(new ManagerOfManager());
	}
	

	protected void sublayout(int width, int height) {
		super.sublayout(width, height - GAP_BOTTOM_px);
	}
	
	protected void makeMenu(Menu menu, int instance) {
		if (instance != 0) 
			return;
		
		menu.add(new MenuItem(new String("Option"), 0, 0){
			public void run() {
				
				OptionScreen.pushScreen();
				super.run();
			}
		});
		
	}
	
	//test 삭제할것
	public static void insertConsol(String str){
		ManagerOfManager.insertConsol(str);
	}
}
